package com.bbu.javaexam.service.impl;

import com.bbu.javaexam.dao.LoginMapper;
import com.bbu.javaexam.domain.Admin;
import com.bbu.javaexam.domain.Student;
import com.bbu.javaexam.domain.Teacher;
import com.bbu.javaexam.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Alex
 * @version 1.0.0
 * @ClassName LoginServiceImpl.java
 * @Description TODO
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public Admin adminLogin(Integer username, String password) {
        return loginMapper.adminLogin(username, password);
    }

    @Override
    public Teacher teacherLogin(Integer username, String password) {
        return loginMapper.teacherLogin(username, password);
    }

    @Override
    public Student studentLogin(Integer username, String password) {
        return loginMapper.studentLogin(username, password);
    }
}
